import React from 'react';
import {
  AppRegistry,
} from 'react-native';
import {DrawerNavigator,TabNavigator,StackNavigator} from 'react-navigation'
import ViewOne from './ViewOne'
import ViewTwo from './ViewTwo'
import ViewThree from './ViewThree'

const RootStack = StackNavigator(
  {//定义路由
    One: {                       //定义Home对应HomeScreen组件
      screen: ViewOne,
    },
    Two: {
      screen: ViewTwo,
    },
    Three: {
      screen: ViewThree,
    },
  }
  // ,
  // {//定义配置
  //   initialRouteName: 'One',     //设置初始路由为Home
  // }
);

export default class App extends React.Component {
  render() {                            //将Navigation作为根路径导出
    return <RootStack />;
  }
}
